Query to find problems with missing row pairs given a partition

visit shbcf.ru